from django.conf.urls import url

from . import views

urlpatterns = [
    # 用户注册
    url(r'api/v1.0/users/$', views.RegisterView.as_view()),
    # 图形验证码
    url(r'^api/v1.0/imagecode/$', views.ImageCodeView.as_view()),
    # 短信验证码
    url(r'^api/v1.0/smscode/$', views.SmsCodeView.as_view()),
    # 登录相关
    url(r'^api/v1.0/session/$', views.LoginView.as_view()),
    # 个人中心
    url(r'^api/v1.0/user/$', views.UserInfoView.as_view()),
    # 上传头像
    url(r'^api/v1.0/user/avatar/$', views.AvatarView.as_view()),
    # 用户实名认证
    url(r'^api/v1.0/user/auth/$', views.AuthView.as_view()),
    # 修改用户名
    url(r'^api/v1.0/user/name/$', views.UsernameView.as_view()),

]
